<?php 
include '../include/init.php';
include '../include/common.fun.php';
include '../include/mysql.config.php';
islogin();
// 单一职责
if($_GET){
	$delid=isset($_GET['id'])?$_GET['id']+0:0;
	$res=$db->delete('wd_message','msg_id='.$delid);
	if($res){
		alert('删除成功','message_list.php');exit;
	}else{
		alert('删除失败');exit;
	}
}